package com.itheima.String;

public class Demo04Equals {
    public static void main(String[] args) {
        //equals:比较两个字符串是否相同(区分大小写)
        //equalsIgnoreCase:比较两个字符串是否相同(不区分大小写)
        String str1="abc";
        String str2="ABC";
        String str3=new String("abc");
        System.out.println(str1.equals(str3));
        System.out.println(str1.equals(str2));
        System.out.println(str2.equalsIgnoreCase(str1));
    }
}
